package com.xm.po;
/**
* @Description: 评论实体类
* @Author: Mr.Wang
* @Date: 2020/8/6
*/
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
public class GoodsComment{
	//属性
	private Integer id;
	//用户id
	private Integer userId;
	//商品id
	private Integer goodsId;
	//评论内容
	private String content;
	//商品评论的附加图片
	private String image;
	//评论的创建时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	//状态(1:有效；0：无效)
	private Integer status;
	//评论点赞数
	private Integer likeCount;
	//构造器
	public GoodsComment(){}
	public GoodsComment(Integer id,Integer userId,Integer goodsId,String content,String image,Date createTime,Integer status,Integer likeCount){
		this.id=id;
		this.userId=userId;
		this.goodsId=goodsId;
		this.content=content;
		this.image=image;
		this.createTime=createTime;
		this.status=status;
		this.likeCount=likeCount;
}
	//getter setter方法
	public void setId(Integer id){
		this.id=id;
	}
	public Integer getId(){
		return id;
	}
	public void setUserId(Integer userId){
		this.userId=userId;
	}
	public Integer getUserId(){
		return userId;
	}
	public void setGoodsId(Integer goodsId){
		this.goodsId=goodsId;
	}
	public Integer getGoodsId(){
		return goodsId;
	}
	public void setContent(String content){
		this.content=content;
	}
	public String getContent(){
		return content;
	}
	public void setImage(String image){
		this.image=image;
	}
	public String getImage(){
		return image;
	}
	public void setCreateTime(Date createTime){
		this.createTime=createTime;
	}
	public Date getCreateTime(){
		return createTime;
	}
	public void setStatus(Integer status){
		this.status=status;
	}
	public Integer getStatus(){
		return status;
	}
	public void setLikeCount(Integer likeCount){
		this.likeCount=likeCount;
	}
	public Integer getLikeCount(){
		return likeCount;
	}
	public String toString(){
		return "Goodscomment [id=" + id + ", userId=" + userId + ", goodsId=" + goodsId + ", content=" + content + ", image=" + image + ", createTime=" + createTime + ", status=" + status + ", likeCount=" + likeCount + "]";
	}
}

